package com.chencs.biz.member.service;


import com.chencs.webmvc.rest.RestFullTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by fangzehua on 2017/7/6.
 */
@Service
public class MemberService {
    private static final Logger logger = LoggerFactory.getLogger(MemberService.class.getName());

    @Autowired
    RestFullTemplate restTemplate;
    private static final String URLPATH = "service-common/member/";
    public String getList() throws Exception{
        String ret = restTemplate.postForObject(URLPATH + "get", String.class,"");
        logger.info("productService getList zuulGateWay result {}", ret);
        return ret;
    }

}
